package cn.nebula.music.domain;

import java.io.Serializable;

import org.springframework.context.annotation.Lazy;

public class CombinationAlbum implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer combination;
	private Integer album;
	public Integer getCombination() {
		return combination;
	}
	public void setCombination(Integer combination) {
		this.combination = combination;
	}
	public Integer getAlbum() {
		return album;
	}
	public void setAlbum(Integer album) {
		this.album = album;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((album == null) ? 0 : album.hashCode());
		result = prime * result + ((combination == null) ? 0 : combination.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CombinationAlbum other = (CombinationAlbum) obj;
		if (album == null) {
			if (other.album != null)
				return false;
		} else if (!album.equals(other.album))
			return false;
		if (combination == null) {
			if (other.combination != null)
				return false;
		} else if (!combination.equals(other.combination))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "CombinationAlbum [combination=" + combination + ", album=" + album + "]";
	}
	
	
}
